let path = require('path')
module.exports = {
    mode: 'development',
    entry: './src/index.js', //入口文件
    output: {
        filename: 'bundle.js',
        path: path.resolve(__dirname, 'dist') // 路径必须是一个绝对路径
    }
}